#define _CRT_SECURE_NO_WARNINGS	
#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>

#define MAXSIZE 10

typedef int ELEMTYPE;

typedef struct CirQueue
{
	ELEMTYPE* arr;
	int front;
	int rear;
}CirQueue;

void Init_CirQueue(CirQueue* pcq);

bool Push(CirQueue* pcq, ELEMTYPE val);

bool Pop(CirQueue* pcq);

ELEMTYPE Front(CirQueue* pcq);

int Size(CirQueue* pcq);

bool Empty(CirQueue* pcq);

bool Full(CirQueue* pcq);

void Clear(CirQueue* pcq);

void Destroy(CirQueue* pcq);

void Show(CirQueue* pcq);

